package com.yn.pet.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 设备注册信息表(DeviceRegister)表实体类
 *
 * @author makejava
 * @since 2025-07-09 12:00:46
 */
@Data
@TableName("t_device_register")
@EqualsAndHashCode(callSuper = true)
public class DeviceRegister extends Model<DeviceRegister> {
    //主键ID
    private Long registerId;
    //设备ID
    private Long deviceId;
    //省域ID
    private Integer provinceId;
    //市县域ID
    private Integer cityId;
    //制造商ID
    private String factory;
    //终端型号
    private Integer deviceModel;
    //终端序列号
    private Integer deviceSerial;
    //车牌颜色
    private Integer plateColor;
    //车牌号
    private String plateNumber;
    //鉴权码
    private String authCode;
    //注册时间
    private Date registerTime;
    //最后鉴权时间
    private Date lastAuthTime;
    //创建时间
    private Date createTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.registerId;
    }
}

